package com.woniu.car.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.car.common.ResponseEntity;
import com.woniu.car.domain.TReceiver;
import com.woniu.car.exception.ParamException;
import com.woniu.car.exception.StatisticsException;
import com.woniu.car.parameter.ReceiverParam;
import com.woniu.car.parameter.UpdateReceiverParam;

/**
 * <p>
 * 收获地址表 服务类
 * </p>
 *
 * @author zhoubinbin
 * @since 2021-06-21
 */
public interface TReceiverService extends IService<TReceiver> {
    //新增收获地址
    ResponseEntity addReceiver(ReceiverParam receiverParam, Integer userId);
    //删除收获地址
    ResponseEntity deleteReceiver(Integer receiverId, Integer userId) throws ParamException;
    //查询当前用户的所有收货地址
    ResponseEntity selectReceiverAll(Integer userId);
    //收获地址修改
    ResponseEntity updateReceiver(UpdateReceiverParam receiverParam, Integer userId);
    //将收获地址设置为默认地址
    ResponseEntity addDefaultAddr(Integer receiverId, Integer userId) throws StatisticsException;
}
